package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.IndexType;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.INDEX_TYPE)
public class ConnGetType extends BaseAsyPost<IndexType> {

    public String index_type = "";


    public ConnGetType(AsyCallBack<IndexType> asyCallBack) {
        super(asyCallBack);
    }


    @Override
    protected IndexType parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");


        Gson gson = new Gson();

        IndexType loginBean = new IndexType();

        loginBean = gson.fromJson(object.toString(), IndexType.class);


        return loginBean;


    }
}



